const schedule = require("node-schedule");

var Func = require("./routes/Func");

const scheduleCronstyle = async () => {
  //每分钟的第30秒定时执行一次:
  schedule.scheduleJob("0,20,40 * * * * *", async () => {
    // var result = await Func.UserMonitorByAPI();
    console.log("UserMonitorByAPI:" + new Date());
  });
};

scheduleCronstyle();
